







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Returns the number of copies of item in the bag.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public int NumberOfCopies( T item ) |
Visual Basic (Declaration) |
---|
Public Function NumberOfCopies ( _ item As T _ ) As Integer |
Visual C++ |
---|
public: int NumberOfCopies ( T item ) |
Parameters
- item
- T
The item to search for in the bag.
Return Value
The number of items in the bag that compare equal to item.
Remarks
NumberOfCopies() takes approximately constant time, no matter how many items
are stored in the bag.
See Also
Bag<(Of <T>)> Class
Wintellect.PowerCollections Namespace